package com.hsgene.order.service.api;

import com.hsgene.common.util.result.ApiResult;
import com.hsgene.message.domain.PushInfo;
import com.hsgene.order.service.api.impl.NotificationServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "ms-mod-message", path = "/v1.0/genetic/testing/notification", fallback = NotificationServiceImpl.class)
public interface NotificationService {

    @PostMapping
    ApiResult<String> pushNotification(@RequestBody PushInfo pushInfo, @RequestParam("userId") String userId,
                                       @RequestParam("isPush")Boolean isPush);
}
